<?php

class addheroController extends Controller{
    public function jumppage(){
        $profileModel = new profileModel();
        $type = $profileModel->selectType();
        $this->assign('type',$type);
        $this->display('addhero.tpl');
    }
    public function addhero(){
        $addheroModel = new addheroModel();
        $rst = $addheroModel->addHero();
        if($rst == true){
            echo json_encode(true);
        }else{
            echo json_encode(false);
        }
        
    }
}